package com.facishare.open.mongo.model;

import com.github.mybatis.entity.IdEntity;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by linchf on 2016/8/23.
 */
@Document(collection = "user")
public class User {
    private String id;
    private String username;
    private String password;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{username='"+username+"/'"+
                    "password='"+password+"/'}";
    }
}